package m.member.manage.model;

import m.common.model.FieldMeta;
import m.common.model.LinkTableMeta;
import m.common.model.Model;
import m.common.model.TableMeta;
import m.common.model.type.FieldType;

import java.util.Date;

@TableMeta(name="t_money_record",description="金额记录表")
public class MoneyRecord extends Model {
    @LinkTableMeta(name="member_oid",table= MemberInfo.class,description="所属会员")
    private MemberInfo member;

    @FieldMeta(name="date",type=FieldType.DATE,notnull=true,description="时间")
    private Date date;
    @FieldMeta(name="type",type= FieldType.STRING,description="类型",dictOption = "A:收入,B:支出,C:充值")
    private String type;

    @FieldMeta(name = "real_money",type = FieldType.DOUBLE,description = "实际金额")
    private Double realMoney;
    @FieldMeta(name = "give_money",type = FieldType.DOUBLE,description = "赠送金额")
    private Double giveMoney;
    @FieldMeta(name = "point",type = FieldType.INT,description = "积分")
    private Integer point;

    @FieldMeta(name="busi_service",type= FieldType.STRING,length = 100,description="业务类")
    private String busiService;
    @FieldMeta(name="busi_oid",type= FieldType.STRING,length = 50,description="业务主键")
    private String busiOid;

    public MemberInfo getMember() {
        return member;
    }

    public void setMember(MemberInfo member) {
        this.member = member;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Double getRealMoney() {
        return realMoney;
    }

    public void setRealMoney(Double realMoney) {
        this.realMoney = realMoney;
    }

    public Double getGiveMoney() {
        return giveMoney;
    }

    public void setGiveMoney(Double giveMoney) {
        this.giveMoney = giveMoney;
    }

    public Integer getPoint() {
        return point;
    }

    public void setPoint(Integer point) {
        this.point = point;
    }

    public String getBusiService() {
        return busiService;
    }

    public void setBusiService(String busiService) {
        this.busiService = busiService;
    }

    public String getBusiOid() {
        return busiOid;
    }

    public void setBusiOid(String busiOid) {
        this.busiOid = busiOid;
    }
}
